#include "StdAfx.h"
#include "RendererFactory.h"

namespace banknamespace
{
	RendererFactory::RendererFactory()
	{
		
	}

	RendererFactory::~RendererFactory(void)
	{
		delete renderer;
	}

	void RendererFactory::init(std::string mode)
	{
		if (mode == "GL")
		{
			renderer = new OpenGLrenderer();
		}
		
		if (mode == "DX")
		{
			//renderer = new DX11renderer();
		}
	}
}
